/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 */
package com.jeesite.modules.vehicle.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 测试数据Entity
 * @author ThinkGem
 * @version 2018-04-22
 */
@Table(name="h_car", alias="a", columns={
        @Column(name="car_id", attrName="carId", label="主键id", isPK=true),
        @Column(name="type_id", attrName="typeId", label="类型id"),
        @Column(name="user_code", attrName = "userCode", label = "商家编码"),
        @Column(name="car_title", attrName="carTitle", label="名称", queryType=QueryType.LIKE),
        @Column(name="brand_id", attrName="brandId", label="品牌id"),
        @Column(name="original_price", attrName="originalPrice", label="原价"),
        @Column(name="sell_price", attrName="sellPrice", label="售卖价格"),
        @Column(name="price_spread", attrName="priceSpread", label="差价"),
        @Column(name="origin_place", attrName="originPlace", label="车辆归属地"),
        @Column(name="kilometer", attrName="kilometer", label="公里数"),
        @Column(name="look_car_place", attrName="lookCarPlace", label="看车地点"),
        @Column(name="cover_url", attrName="coverUrl", label="封面照片"),
        @Column(name="car_model", attrName="carModel", label="车型"),
        @Column(name="car_color", attrName="carColor", label="车身颜色"),
        @Column(name="transfers", attrName="transfers", label="过户次数", isUpdateForce=true),
        @Column(name="register_date", attrName="registerDate", label="上户日期", isUpdateForce=true),
        @Column(name="cylinder", attrName="cylinder", label="汽缸"),
        @Column(name="car_label", attrName="carLabel", label="车辆标签"),
        @Column(name="explain", attrName="explain", label="具体车况"),
        @Column(name="detail_tel", attrName="detailTel", label="详情电话"),
        @Column(name="car_status", attrName="carStatus", label="状态（0已通过 1已删除 2已下架 3待审核 4未通过 9已撤销）"),
        @Column(name="create_by", attrName="createBy", label="创建者", isUpdate=false, isQuery=false),
        @Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false),
        @Column(name="update_by", attrName="updateBy", label="更新者"),
        @Column(name="update_date", attrName="updateDate", label="更新时间"),
        @Column(name="remarks", attrName="remarks", label="备注信息"),
	}, joinTable={
		@JoinTable(type= JoinTable.Type.LEFT_JOIN, entity= BrandApi.class, alias="b",
			on="a.brand_id = b.brand_id", attrName="this",
			columns={
					@Column(name="title", attrName="brandName", label="品牌名称", queryType=QueryType.LIKE),
			}),
		@JoinTable(type= JoinTable.Type.LEFT_JOIN, entity= CarTypeApi.class, alias="c",
			on="a.type_id = c.type_code", attrName="this",
			columns={
					@Column(name="tree_name", attrName="typeName", label="类型名称", queryType=QueryType.LIKE),
					@Column(name="big_type", attrName="bigType", label="汽车类型"),
			})
	}, orderBy="a.update_date DESC"
)
public class CarApi extends DataEntity<CarApi> {
	
	private static final long serialVersionUID = 1L;
	private String carId;		// 主键id
	private String userCode;	// 商家编码
	private String merchantName;// 商家姓名
	private String merchantLogo;// 商家logo
	private String carTitle;	// 标题
	private String carLabel;	// 标签
	private String carColor;	// 颜色
	private String carModel;	// 车型
	private String lookPlace;	// 看车地点
	private String originPlace;	// 属地
	private String kilometer;	// 公里数
	private String brandId;		// 品牌id
	private String brandName;	// 品牌名称
	private Integer originalPrice;	// 原价
	private Integer sellPrice;		// 售价
	private Integer priceSpread;	// 差价
	private String coverUrl;	// 封面
	private String transfers;	// 过户次数
	private String applyDate;	// 上户日期
	private String cylinder;	// 汽缸
	private String explain;		// 详细说明
	private String detailTel;	// 详情电话
	private String registerDate;// 上户日期
	private String showDate;	// 显示上户日期
	private String imageUrl;	// 图片地址
	private String imageType;	// 类型（0轮播图 1详情图）
	private String typeId;		// 类型id
	private String typeName;	// 类型名称
	private String bigType;		// 大类型
	private String showSellPrice;	// 显示价格
	private String lookCarPlace;	// 看车地点
	private String seat;		// 移动端判断
	private String prefix;		// 路径
	private String foreignId;	// 外键
	private String carStatus;	// 查询状态
	private String viewCount;	// 浏览量
	private String followCount;	// 关注量
	private String isFollow;	// 是否关注
	private String queryType;	// 查询类型
	private String queryInfo;	// 查询信息

	public CarApi() {
		this(null);
	}

	public CarApi(String id){
		super(id);
	}

	public String getMerchantName() {
		return merchantName;
	}

	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}

	public String getFollowCount() {
		return followCount;
	}

	public void setFollowCount(String followCount) {
		this.followCount = followCount;
	}

	public String getMerchantLogo() {
		return merchantLogo;
	}

	public void setMerchantLogo(String merchantLogo) {
		this.merchantLogo = merchantLogo;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public Integer getOriginalPrice() {
		return originalPrice;
	}

	public void setOriginalPrice(Integer originalPrice) {
		this.originalPrice = originalPrice;
	}

	public Integer getPriceSpread() {
		return priceSpread;
	}

	public void setPriceSpread(Integer priceSpread) {
		this.priceSpread = priceSpread;
	}

	public String getIsFollow() {
		return isFollow;
	}

	public void setIsFollow(String isFollow) {
		this.isFollow = isFollow;
	}

	public String getViewCount() {
		return viewCount;
	}

	public void setViewCount(String viewCount) {
		this.viewCount = viewCount;
	}

	public String getCarId() {
		return carId;
	}

	public void setCarId(String carId) {
		this.carId = carId;
	}

	public String getCarTitle() {
		return carTitle;
	}

	public void setCarTitle(String carTitle) {
		this.carTitle = carTitle;
	}

	public String getBrandId() {
		return brandId;
	}

	public void setBrandId(String brandId) {
		this.brandId = brandId;
	}

	public String getBrandName() {
		return brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}

	public Integer getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(Integer sellPrice) {
        this.sellPrice = sellPrice;
    }

    public String getCoverUrl() {
		return coverUrl;
	}

	public void setCoverUrl(String coverUrl) {
		this.coverUrl = coverUrl;
	}

	public String getTransfers() {
		return transfers;
	}

	public void setTransfers(String transfers) {
		this.transfers = transfers;
	}

	public String getApplyDate() {
		return applyDate;
	}

	public void setApplyDate(String applyDate) {
		this.applyDate = applyDate;
	}

	public String getCylinder() {
		return cylinder;
	}

	public void setCylinder(String cylinder) {
		this.cylinder = cylinder;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getImageType() {
		return imageType;
	}

	public void setImageType(String imageType) {
		this.imageType = imageType;
	}

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getShowSellPrice() {
		return showSellPrice;
	}

	public void setShowSellPrice(String showSellPrice) {
		this.showSellPrice = showSellPrice;
	}

	public String getCarLabel() {
		return carLabel;
	}

	public void setCarLabel(String carLabel) {
		this.carLabel = carLabel;
	}

	public String getKilometer() {
		return kilometer;
	}

	public void setKilometer(String kilometer) {
		this.kilometer = kilometer;
	}

	public String getQueryType() {
		return queryType;
	}

	public void setQueryType(String queryType) {
		this.queryType = queryType;
	}

	public String getQueryInfo() {
		return queryInfo;
	}

	public void setQueryInfo(String queryInfo) {
		this.queryInfo = queryInfo;
	}

	public String getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(String registerDate) {
        this.registerDate = registerDate;
    }

	public String getBigType() {
		return bigType;
	}

	public void setBigType(String bigType) {
		this.bigType = bigType;
	}

	public String getSeat() {
		return seat;
	}

	public void setSeat(String seat) {
		this.seat = seat;
	}

	public String getPrefix() {
		return prefix;
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}

	public String getForeignId() {
		return foreignId;
	}

	public void setForeignId(String foreignId) {
		this.foreignId = foreignId;
	}

	public String getCarStatus() {
		return carStatus;
	}

	public void setCarStatus(String carStatus) {
		this.carStatus = carStatus;
	}

	public String getShowDate() {
		return showDate;
	}

	public void setShowDate(String showDate) {
		this.showDate = showDate;
	}

	public String getExplain() {
		return explain;
	}

	public void setExplain(String explain) {
		this.explain = explain;
	}

	public String getDetailTel() {
		return detailTel;
	}

	public void setDetailTel(String detailTel) {
		this.detailTel = detailTel;
	}

	public String getCarColor() {
		return carColor;
	}

	public void setCarColor(String carColor) {
		this.carColor = carColor;
	}

	public String getCarModel() {
		return carModel;
	}

	public void setCarModel(String carModel) {
		this.carModel = carModel;
	}

	public String getLookPlace() {
		return lookPlace;
	}

	public void setLookPlace(String lookPlace) {
		this.lookPlace = lookPlace;
	}

	public String getOriginPlace() {
		return originPlace;
	}

	public void setOriginPlace(String originPlace) {
		this.originPlace = originPlace;
	}

	public String getLookCarPlace() {
		return lookCarPlace;
	}

	public void setLookCarPlace(String lookCarPlace) {
		this.lookCarPlace = lookCarPlace;
	}
}